package com.shenyong.ladmin.service.Impl;

import com.shenyong.ladmin.mapper.CommentMapper;
import com.shenyong.ladmin.entity.Comment;
import com.shenyong.ladmin.result.Page;
import com.shenyong.ladmin.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentMapper commentMapper;
    @Override
    public List<Comment> commentAll(Page page) {
        return commentMapper.commentAll(page);
    }

    @Override
    public int commentCount(Page page) {
        return commentMapper.commentCount(page);
    }

    @Override
    public int deleteComment(int comment_id) {
        return commentMapper.deleteComment(comment_id);
    }
}
